﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Seminarska
{
    /// <summary>
    /// Interaction logic for BrisiVraboten.xaml
    /// </summary>
    public partial class BrisiVraboten : Window
    {
        public BrisiVraboten()
        {
            InitializeComponent();

            Rect r = Properties.Settings.Default.Window;
            this.Top = r.Top;
            this.Left = r.Left;
        }

        private void btnBrisi_Click(object sender, RoutedEventArgs e)
        {
            Properties.Settings.Default.Window = this.RestoreBounds;
            Properties.Settings.Default.Save();
            this.Close();
        }

        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            Properties.Settings.Default.Window = this.RestoreBounds;
            Properties.Settings.Default.Save();
        }
    }
}
